using System;
using HCP.Responses;
using HCP.SimpleJSON;
using UnityEngine;
using UnityEngine.UI;

namespace HCP.Requests
{
	public class ClearElementText : JobRequest
	{
		public ClearElementText(JSONClass json) : base(json)
		{
		}

		public string Id
		{
			get
			{
				return base.Data["elementId"];
			}
		}

		public override JobResponse Process()
		{
			Component elementById = JobRequest.GetElementById(this.Id);
			elementById.GetComponent<Text>().text = string.Empty;
			return new StringResponse();
		}
	}
}
